home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1348 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: redstone.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP NEEDED: What the hell is wrong with my program?
  5. Date: 12 Jan 1996 23:36:59 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4d6rar$nq3@redstone.interpath.net>
  8. References: <4cvu6r$vcs@carbon.cudenver.edu>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. ELLIE XIAO-YU LI (exli@ouray.cudenver.edu) wrote:
  13. : I am writing a C program on unix platforms. When I run my program, I keep
  14. : getting a system warning "Unaligned access...". 
  15. : Does anyone out there know what
  16. : this "unaligned access" crap is and what cuases the problem? 
  17.  
  18. Sounds like you are programming on some type of processor which 
  19. demands memory accesses start on some alignment. The best way to fix
  20. it is to turn on all of the compiler warnings and messages you possibly
  21. can, and see if the compiler can lead you towards what it doesn't like.
  22. HP's PA-RISC chips are a big headache for aligned data. 
  23.  
  24. Or, you could just program on something like an x86 chip that doesn't
  25. care how you access data!
  26.  
  27. Scott
  28.  
  29.  
  30.